//
//  JQSettingButtonCell.m
//  JQKit
//
//  Created by JQZ on 2017/12/29.
//  Copyright © 2017年 JQZ. All rights reserved.
//

#import "JQSettingButtonCell.h"
#import "JQSettingItem.h"

@implementation JQSettingButtonCell

@synthesize item = _item;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.textLabel setTextAlignment:NSTextAlignmentCenter];
    }
    return self;
}

#pragma mark - JQSettingCellProtocol
- (void)setItem:(JQSettingItem *)item
{
    _item = item;
    [self.textLabel setText:item.title];
}

@end
